<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>v-html</title>
</head>

<body>
    <div id="app">
        <!-- 输出：html标签在渲染的时候被解析 -->
        <div v-html="msg"></div>
        <!-- 输出：<h1>Hello Vue!</h1> -->
        <div v-text="msg"></div>
        <!-- 输出：<h1>Hello Vue!</h1> -->
        <div>{{msg}}</div>
    </div>

    <script type="text/javascript" src="js/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
            el: '#app',
            data: {
                msg: '<h1>Hello Vue!</h1>'
            }
        });
    </script>
</body>

</html>